home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
amos
/
apme14.lzh
/
PatchAMOSPro.amos
/
PatchAMOSPro.amosSourceCode
Wrap
AMOS Source Code
|
1995-09-27
|
992b
|
33 lines
_START:
' Ask filename of AMOSPro
F$=Fsel$("","","Please select your AMOSPro file")
If F$="" Then End
If Right$(F$,7)<>"AMOSPro" Then _WRONGFILE : Goto _START
' Load Amos Pro in bank 10
Open In 1,F$ : L=Lof(1) : Close 1
Reserve As Work 10,L
Bload F$,10
' Search for the string in the AMOSPro file where the
' Interpreter_Config is to be found...
POS=Hunt(Start(10) To Start(10)+Length(10),"s:AMOSPro_Interpreter_Config")
' sometimes the string is in upper case, so let's check for it as well
' if it wasn't found the first time
If POS=0
POS=Hunt(Start(10) To Start(10)+Length(10),"S:AMOSPro_Interpreter_Config")
End If
If POS=0 Then Print "Not found. Wrong version of AMOSPro ?" : End
' and change it
Poke$ POS,"T:AMOSPro_Interpreter_Config"
' And then save it
Bsave F$,Start(10) To Start(10)+Length(10)
'written by:
' Mark de Jong
' and
' Darryl Lewis
Procedure _WRONGFILE
Cls
Print "This is not the AMOSPro file"
Print "Please try again"
Repeat : Until Mouse Key
End Proc